function show_detail(id){
	var frame=document.getElementById("detail_frame");
	frame.src="info/customer/detail?id="+id;
	showDiv("detail_view",'event',550,400);
}

function delete_confirm(name,id){
	var tip=document.getElementById("delete_tip");
	tip.innerHTML="确认删除客户#name#?".replace("#name#",name);
	var delete_button=document.getElementById("delete_confirmed");
	delete_button.onclick=function(){
		do_delete(id);
	};
	showDiv("delete_confirm",'event',320,105);
}

function do_delete(id){
	closeDiv('delete_confirm');
	var frame=document.getElementById("delete_result_frame");
	frame.src="info/customer/delete?id="+id;
	showDiv("delete_result","event",400,100);
}

function delete_done(){
	window.location.reload();
	closeDiv('delete_result');
}